package org.ysu.service.impl;

import org.ysu.entity.Areas;
import org.ysu.mapper.AreasMapper;
import org.ysu.service.AreasService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 区县 服务实现类
 * </p>
 *
 * @author ZhangYibo
 * @since 2024-08-22
 */
@Service
public class AreasServiceImpl extends ServiceImpl<AreasMapper, Areas> implements AreasService {
    @Resource
    AreasMapper areasMapper;
    @Override
    public String getNameById(Long rId) {
        return areasMapper.selectNameById(rId);
    }
    @Override
    public List<Long> getCodesByCityCode(Long cityCode) {
        return areasMapper.selectCodesByCityCode(cityCode);
    }
}
